package com.edu.entity;

import java.util.List;

/**
 * @author:yj
 * @Date:2024/10/10-11:38
 * @porjectName:Demo1
 */
public class Book {
    private int bId;
    private String bName;
    private int wId;
    private String bType;
    private int pId;
    private List<Writer> writers;

    public int getbId() {
        return bId;
    }

    public void setbId(int bId) {
        this.bId = bId;
    }

    public String getbName() {
        return bName;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public int getwId() {
        return wId;
    }

    public void setwId(int wId) {
        this.wId = wId;
    }

    public String getbType() {
        return bType;
    }

    public void setbType(String bType) {
        this.bType = bType;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public List<Writer> getWriters() {
        return writers;
    }

    public void setWriters(List<Writer> writers) {
        this.writers = writers;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bId=" + bId +
                ", bName='" + bName + '\'' +
                ", wId=" + wId +
                ", bType='" + bType + '\'' +
                ", pId=" + pId +
                '}';
    }

    public Book() {
    }
}
